package com.test.daily.leetcode.y2021.m11.day1104;

/**
 * @descriptions: isPerfectSquare
 * @author: Tom
 * @date: 2021/11/4 上午 08:24
 * @version: 1.0
 */
public class Code01_IsPerfectSquare {
    public boolean isPerfectSquare(int num) {
        for(int i = 1; i < (num >>1); i++){
            if(i * i == num){
                return true;
            }
        }
        return false;
    }
}
